package com.lzx.makeFriend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lzx.makeFriend.entity.vo.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lzx
 * @since 2023-01-03
 */
@Getter
@Setter
@ApiModel(value = "Invite对象", description = "")
public class Invite implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("接收人")
    private Integer recipient;

    @ApiModelProperty("邀请人")
    private Integer inviter;

    @ApiModelProperty("问题id")
    private Integer problemId;

    @ApiModelProperty("是否同意(0:邀请中,1:同意,2:拒绝)")
    private Integer isAgree;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private User user;

    //通知信息,这里表示问题标题
    @TableField(exist = false)
    private String message;
}
